﻿using WeDonekRpc.Helper.Validate;

namespace WeDonekRpc.HttpApiGateway.Model
{
    public class StringParam<T>
    {
        /// <summary>
        /// 数据Id
        /// </summary>
        [NullValidate("public.data.id.null")]
        public string Id { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        [NullValidate("public.data.value.null")]
        public T Value { get; set; }
    }
    public class StringNullParam<T>
    {
        /// <summary>
        /// 数据Id
        /// </summary>
        [NullValidate("public.data.id.null")]
        public string Id { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        public T Value { get; set; }
    }
}
